package gupao.concurrency.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@Slf4j
@RestController
public class NormalApi {

    /**
     * 作为网关限流的upstream mock接口
     * 接口自己不限流，而是在网关入口处进行限流
     * @return
     */
    @RequestMapping("/hello")
    public String hello(){
        return "hello, Success. Time: " + new Date();
    }
}
